import { Navigate } from "react-router-dom";
import Home from '../views/home/Home'
import Login from '../views/login/Login'
import Car from '../views/car/Car'
import Detail from '../views/detail/Detail'
import My from '../views/my/My'
import Address from "../views/address/Address";
import Search from "../views/search/Search";
import Step1 from "../views/regist/Step1";
import Step2 from "../views/regist/Step2";
import Step3 from "../views/regist/Step3";

export const routes = [
    {
        path: '/home',
        element: <Home></Home>
    },
    {
        path: '/login',
        element: <Login></Login>
    },
    {
        path: '/car',
        element: <Car></Car>
    },
    {
        path: '/detail/:proid',
        element: <Detail></Detail>
    },
    {
        path: '/my',
        element: <My></My>
    },
    {
        path: '/address',
        element: <Address></Address>
    },
    {
        path: '/search',
        element: <Search></Search>
    },
    {
        path: '/regist/step1',
        element: <Step1></Step1>
    },
    {
        path: '/regist/step2',
        element: <Step2></Step2>
    },
    {
        path: '/regist/step3',
        element: <Step3></Step3>
    },
    {
        path: '/',
        element: <Navigate to="/home" />
    },
]